Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/58555 reminder mail not sent in case more than 15 notifications are to be reported about #17021

Conversation

ulferts
Copy link
Contributor

@ulferts ulferts commented Oct 22, 2024

Ticket

https://community.openproject.org/wp/58555

What are you trying to accomplish?

The notification_path is not defined in the context of the template being rendered. It will thus result in an hard error and this means that the mail is not sent at all. I haven't been able to figure out why the path is not defined but it needs to be the notifications_url in any case since the full url needs to be available as the link is followed from the mail client.

A second thing that was changed is the concurrency key although no errors have been reported about that. But with the way it was defined before, only one of multiple users sharing the same name could have a Mail::ReminderJob scheduled at the same time. The reason for this is that sometimes the user object is passed in. On it, to_s will be called to determine the concurrency_key. If two people share the same name, then adding the job for the second user will be prevented. This is changed by using the id of the user object instead.

Merge checklist

  • Added/updated tests

@ulferts ulferts marked this pull request as ready for review October 23, 2024 06:56
@ulferts ulferts changed the title Bug/58555 reminder mmail not sent in case more than 15 notifications are to be reported about Bug/58555 reminder mail not sent in case more than 15 notifications are to be reported about Oct 23, 2024
Copy link
Member

@machisuji machisuji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@machisuji machisuji merged commit 5109cf5 into release/14.6 Oct 23, 2024
11 checks passed
@machisuji machisuji deleted the bug/58555-reminder-mmail-not-sent-in-case-more-than-15-notifications-are-to-be-reported-about branch October 23, 2024 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants